package temp;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class Test {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("C:\\Users\\Linngdu664\\IdeaProjects\\untitled\\src\\temp\\aq.json");
        InputStreamReader  isr = new InputStreamReader(fis, "utf-8");
        BufferedReader bf = new BufferedReader(isr);
        String sl = "";
        StringBuffer s = new StringBuffer();
        int i=0;
        int start=24,length=24;
        while((sl = bf.readLine())!=null) {
            if(i>=start&&i<start+length) {
                s.append(sl);
            }
            i++;
        }
        s.deleteCharAt(s.length()-1);
        s.insert(0,"{\"subjects\":[");
        s.insert(s.length(),"]}");
        System.out.println(s);
        fis.close();
        isr.close();
        bf.close();
    }
}
